﻿using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
using System;

namespace Sustainalytics.Entities
{
    public class FtpClientReport : IEntity
    {

        public Guid Id { get; set; }

        public Guid AccountId { get; set; }

        public Guid ReportId { get; set; }

        [BsonRepresentation(BsonType.String)]
        public FrequencyEnum Frequency { get; set; }
        
        public DateTime? LastGeneratedDate { get; set; }

        public DateTime NextGenerationDate { get; set; }

        public string Name { get; set; }
       
    }

    public enum FrequencyEnum
    {
        Daily = 1,
        Weekly = 2,
        SemiMonthly = 3,
        Monthly = 4,
        Quarterly = 5
    }
}
